﻿using IdentityModel.Client;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Threading.Tasks;

namespace ShanNiang.Service.LoginModels.Responses
{
    /// <summary>
    /// 微信登陆响应
    /// </summary>
    public class WxAppLoginResponse
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [JsonProperty("username")]
        [System.Text.Json.Serialization.JsonPropertyName("username")]
        public string? UserName { get; set; }
        /// <summary>
        /// 登录键
        /// </summary>
        [JsonProperty("provider_key")]
        [System.Text.Json.Serialization.JsonPropertyName("provider_key")]
        public string? ProviderKey { get; set; }
        /// <summary>
        /// 登录方式
        /// </summary>
        [JsonProperty("login_provider")]
        [System.Text.Json.Serialization.JsonPropertyName("login_provider")]
        public string? LoginProvider { get; set; }
        /// <summary>
        /// 签名
        /// </summary>
        [JsonProperty("sign")]
        [System.Text.Json.Serialization.JsonPropertyName("sign")]
        public string? Sign { get; set; }
        /// <summary>
        /// 是否登陆成功
        /// </summary>
        public bool Success { get; set; }

        //[JsonIgnore]
        //[System.Text.Json.Serialization.JsonIgnore]
        //public TokenResponse? Token { get; set; }
    }
}
